import { ApiProperty } from '@midwayjs/swagger'
import { Rule, RuleType } from '@midwayjs/validate'

/**
 * 删除传输对象
 */
export class DeleteDTO {
  @ApiProperty({
    description: '编号',
    type: 'array',
    items: {
      type: 'string'
    }
  })
  @Rule(
    RuleType.array()
      .items(RuleType.any())
      .min(1)
      .error(new Error('编号不能为空'))
  )
  ids: any[]
}
